using Game.Main.Model;

namespace Game.Component
{
	public class ElectricMachineItem : BaseItem
	{
		public override void Init(ItemArchiveData data)
		{
			base.Init(data);
		}

		protected override void CheckColls()
		{
			for (int i = 0; i < itemCompColls.Count; i++)
			{
				ItemComponentTrigger.Type type = itemCompColls[i].trigger.type;
				if (type == ItemComponentTrigger.Type.ElectricMachineBox)
				{
					BaseItem owner = itemCompColls[i].trigger.owner;
					if (owner.itemData.scriptType == 132 && ((ElementCreatorItem)owner).ChangeElectricMachine(this))
					{
						return;
					}
				}
			}
			base.CheckColls();
		}
	}
}
